package com.sp.system.user.core.config;

import org.apache.activemq.command.ActiveMQTopic;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import javax.jms.Topic;

@Component
public class TopicConfig {
   public static String spTopic = "sp_topic";
    
    //首先将队列注入到SpringBoot容器中去
    @Bean
    public  Topic topic() {
        return new ActiveMQTopic(spTopic);
    } 
    
}